execute unless predicate dab:is_playing run return fail
execute if items entity @s hotbar.8 *[custom_data~{id:"arrow_bundle"}] run return fail

#锁住bundle位置
execute if data entity @s Inventory[{components:{"minecraft:custom_data":{id:"arrow_bundle"}}}] run return run function dab:system/arrow_bundle/lock_in_slot/reset/in_inventory
execute unless data entity @s Inventory[{components:{"minecraft:custom_data":{id:"arrow_bundle"}}}] if entity @n[distance=..10,type=item,nbt={Item:{components:{"minecraft:custom_data":{id:"arrow_bundle"}}}}] run return run function dab:system/arrow_bundle/lock_in_slot/reset/out_inventory

#重新获得
execute unless items entity @s player.cursor *[custom_data~{id:"arrow_bundle"}] unless items entity @s player.crafting.* *[custom_data~{id:"arrow_bundle"}] run function dab:system/arrow_bundle/get